package com.uni.service;

import com.uni.pojo.Prodtype;
import com.uni.pojo.Product;

import java.util.List;
import java.util.Map;

public interface ProductService {
    List<Product> getAllProduct();
    List<Product> getProductWithProviderBySome(Map<String, String> paramMap);
    List<Product> getProductWithTypeBySome(Map<String, String> paramMap);
    Product getProductWithProviderById(Long id);
    List<Prodtype> getAllProdType();
    int modifyProductById(Product product);
    int takeItDown(Long prodId);
    int takeItUp(Long prodId);

    int takeThemDown(List<Long> prodId);
    int takeThemUp(List<Long> prodId);

    Product addProduct(Product product);
}
